package com.yzh.animal.teacher;

public class Test {
    public static void main(String[] args) {
        //创建Dog对象
        Dog dog = new Dog("旺财","黑色",3);
        dog.eat();
        dog.guard();
        dog.rest();

        //创建Cat对象
        Cat cat = new Cat("花色",3,5.2);
        cat.eat();
        cat.gradMouse();
        cat.rest();
    }
}
